/*
 * Copyright 2007. Mount Sinai Hospital, Toronto, Canada.
 * 
 * Licensed under the GNU Lesser General Public License, Version 2. You
 * can find a copy of the license at:
 * 
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
 * 
 * IN NO EVENT SHALL MOUNT SINAI HOSPITAL BE LIABLE TO ANY PARTY FOR DIRECT, 
 * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST 
 * PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, 
 * EVEN IF MOUNT SINAI HOSPITAL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 
 * DAMAGE.
 * 
 * MOUNT SINAI HOSPITAL SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF 
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE AND 
 * ACCOMPANYING DOCUMENTATION, IF ANY, PROVIDED HEREUNDER IS PROVIDED "AS IS". 
 * MOUNT SINAI HOSPITAL HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, 
 * UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 
 */
package com.sinai.mshab;

import com.sinai.mshab.client.ClientTestSuite;
import com.sinai.mshab.server.ServerTestSuite;

import junit.framework.Test;
import junit.framework.TestSuite;
import junit.textui.TestRunner;

/**
 * Runs all the tests and test suites in mshab.
 * 
 * @author Arthur Kalmenson
 */
public class MSHABTestSuite {

	/**
	 * Message to show when an IllegalArgumentException should have been raised.
	 */
	public static final String SHOULD_RAISE_ILLEGAL_ARG_EXCEPTION = "An "
			+ "IllegalArgumentException should have been thrown.";
	
	/**
	 * Message to show when an IllegalStateException should have been raised.
	 */
	public static final String SHOULD_RAISE_ILLEGAL_STATE_EXCEPTION = "An "
			+ "IllegalStateException should have been thrown.";

	/**
	 * Returns the TestSuite to run all the tests.
	 * 
	 * @return the TestSuite to run all the tests.
	 */
	public static Test suite() {
		TestSuite suite = new TestSuite();

		suite.addTest(ClientTestSuite.suite());
		suite.addTest(ServerTestSuite.suite());
		return suite;
	}

	/**
	 * Runs all the tests.
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		TestRunner.run(suite());
	}

}
